﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucListKhuyenMai.ascx.cs"
    Inherits="Admin_ucControl_ucListKhuyenMai" %>
<div id="tabledata" class="section">
    <h2 class="ico_mug">
        DANH SÁCH TIN KHUYẾN MÃI</h2>
    <asp:HyperLink ID="hypNews_new" runat="server" Style="color: Blue" NavigateUrl="~/Admin/ThemKhuyenMai.aspx">
            <h3>Thêm thông tin khuyến mãi</h3>
    </asp:HyperLink>
    <br />
    <asp:GridView ID="grdKhuyenMai" runat="server" AutoGenerateColumns="False" Width="100%">
        <Columns>
            <asp:TemplateField HeaderText="Image">
                <ItemTemplate>
                    <asp:Image ID="img" runat="server" ImageUrl='<%# "~/Admin/img/Items/"  + Eval("ImageURL") %>'
                        Width="180px" />
                </ItemTemplate>
                <ItemStyle Width="190px" />
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="ID" DataTextField="ID" HeaderText="ID"
                DataNavigateUrlFormatString="~/Admin/ThemKhuyenMai.aspx?id={0}">
                <ItemStyle ForeColor="Blue" Width="100px" HorizontalAlign="Center" />
            </asp:HyperLinkField>
            <asp:TemplateField HeaderText="Tiêu đề">
                <ItemTemplate>
                    <asp:Label ID="lbTieuDe" runat="server" Text='<%# Eval("TieuDe") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Nội Dung">
                <ItemTemplate>
                    <asp:HyperLink ID="hylink" runat="server" NavigateUrl='<%# "~/Admin/ViewKhuyenMai.aspx?keepThis=true&TB_iframe=true&width=600&height=510&id=" + Eval("ID") %>'
                        CssClass="thickbox" ToolTip="KHUYẾN MÃI">Xem trước</asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</div>
